﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="WinnerCMS.WebUI.Admin.Template.Add"
    CodeBehind="Add.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>添加模板集</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta content="no-cache" http-equiv="Pragma" />

    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <script type="text/javascript">
        function GetTemplate(cName) 
        {
            var str = window.showModalDialog("../window/GetTemplate.aspx", "up", "dialogWidth=350px;dialogHeight=320px;status=0;scroll=auto");

           
            if (typeof (str) != "undefined")
                $get(cName).value = str;
        }
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table id="NavigationPath">
        <tr>
            <td width="60%"><asp:Label ID="lblPath2" runat="server"></asp:Label>
            </td>
            <td width="40%">
                导航：<a href="Manage.aspx">模板集管理</a> &nbsp;| &nbsp;<a href="Add.aspx">
                    添加模板集</a>
            </td>
        </tr>
    </table>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
      
                        <table class="table table-bordered table-condensed table-hover">
                            <tr>
                                <td class="RowTitle">
                                    <strong>&nbsp;模板名称：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTemplateName" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                        runat="server" ErrorMessage="必须输入" ControlToValidate="txtTemplateName"></asp:RequiredFieldValidator></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    <strong>模板目录：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTemplatePath" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                        runat="server" ControlToValidate="txtTemplatePath" ErrorMessage="必须输入"></asp:RequiredFieldValidator></span><br />
                                    输入它存放的目录就可以了，例如“Default”即可
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    <strong>样式表目录：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtStyle" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                                        runat="server" ControlToValidate="txtStyle" ErrorMessage="必须输入"></asp:RequiredFieldValidator></span>
                                </td>
                            </tr>
                            
                            
                                                
                            <tr>
                                <td class="RowTitle">
                                    备注：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="txtRemark" runat="server" Height="87px" TextMode="MultiLine" Width="345px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:Button ID="btnAdd" runat="server" Text="提交" OnClick="btnAdd_Click" Cssclass="btn btn-default"
                                        EnableViewState="False"></asp:Button>
                                    <input id="back" onclick="window.location.href='Manage.aspx'" type="button"
                                        value="返回" class="btn btn-default" />
                                </td>
                            </tr>
                        </table>
                    
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
